#{extends 'main.html' /}
#{set title:'Add tag to an Item' /}
<html>

<form id ="myform" action="@{Items.addTag()}" method="POST">
Item <select size="1" name="itemID"> 
            #{list items:items, as:'Item'}
                <option value="${Item.id}">${Item.name}</option>
            #{/list}
            </select>

Tag <select size="1" name="tagID"> 
            #{list items:tags, as:'Tag'}
                <option value="${Tag.id}">${Tag.name}</option>
            #{/list}
            </select>
<input type = "submit" value = "Submit" name = "Submit"/>            
</form>

<p style="color:blue">
        ${result}
</p>


</html>